package com.erp.shop.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 卖家店铺所在类目业务对象 erp_seller_store_subcategory
 *
 * @author erp
 * @date 2023-05-09
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpSellerStoreSubcategoryBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 账号id
     */
    @NotNull(message = "账号id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 店铺id
     */
    @NotNull(message = "店铺id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sellerStoreId;

    /**
     * 类目子串
     */
    @NotBlank(message = "类目子串不能为空", groups = { AddGroup.class, EditGroup.class })
    private String categoryIds;

    /**
     * 乐观锁
     */
    @NotBlank(message = "乐观锁不能为空", groups = { AddGroup.class, EditGroup.class })
    private String revision;


}
